﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MVCLD.Models.Category>>" %>
<%@ Import Namespace="MVCLD.Settings" %>
<%@ Import Namespace="MVCLD.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%= Settings.GeneralSiteName.ToString() %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div id="directoryopeningtext">
		<h1><%= Settings.GeneralSiteName.ToString() %></h1>
		<p>This is a business directory and this piece of text is about the directory</p>
	</div>
	
    <div id="homepagelinks">
		<div id="topcategories">
		<ul class="homecategorylist">
            <% foreach (var c in Model) {%>
            
                <li><%=Html.ActionLink(c.CategoryName, "Index", "Category", new { UrlID = c.UrlID, catname = c.CategoryName.niceurl() }, null)%> </li>
                
            <%} %>	    
		</ul>
		</div>
        <div class="clearer">&nbsp;</div>
    </div>

    <div id="hplatestwebsites">
    <h1>Latest Submitted Articles</h1>

    <% foreach (var item in (IEnumerable<MVCLD.Models.Article>)ViewData["LatestWebsites"]){%>        
        <% Html.RenderPartial("articlelisttemaple", item); %>
    <% }  %>
    </div>
    

</asp:Content>

